cmake_minimum_required(VERSION 2.4)

project(mysql)

SET(CMAKE_C_COMPILER gcc)
SET(CMAKE_CXX_COMPILER g++)

FIND_LIBRARY(PTHREAD_LIB pthread /usr/lib)

# set out put path
SET(LIBRARY_OUTPUT_PATH ./lib)

INCLUDE_DIRECTORIES(
    .
    ../include
    ../include/mysql
    ../include/mysql/mysql/include
    )

file(GLOB SRC_FILES "*.cpp" "*.hpp" "*.h" "*.c" "*.cc")

#set src files
SET(SRC_FILES 
    ${SRC_FILES}
    )

ADD_LIBRARY(mysql SHARED ${SRC_FILES})
#ADD_LIBRARY(mysql STATIC ${SRC_FILES})
